<?php
class kam{
	public function View_List_All()
	{
		global $table_kam; 		
		return View_List_All_Kam($table_kam);
	}
	public function View_List_All_Kam($table_kam)
	{
		global $db;
		
		$sql = "select * from ".$table_kam;		
		return $db->getAll($sql);						
	}
	public function View_List_Query($query)
	{
		global $table_kam;		
		
		$where = " where ".$query;		
		return View_List_Query_Kam($table_kam, $where);
	}
	public function View_List_Query_Kam($table_kam, $where)
	{
		global $db;
		
		$sql = "select * from ".$table_kam. $where;		
		return $db->getAll($sql);			
	}
}
?>